package cn.com.demo.microservice.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class AqPermission implements Serializable {
    private Integer prmId;

    private String prmName;

    private Integer prmOpId;

    private Integer prmRsId;

    private AqResource resource;
    private AqOperator operator;
    private List<AqRole> roleList = new ArrayList<>();

    private static final long serialVersionUID = 1L;

    public List<AqRole> getRoleList() {
        return roleList;
    }

    public void setRoleList(List<AqRole> roleList) {
        this.roleList = roleList;
    }

    public AqResource getResource() {
        return resource;
    }

    public void setResource(AqResource resource) {
        this.resource = resource;
    }

    public AqOperator getOperator() {
        return operator;
    }

    public void setOperator(AqOperator operator) {
        this.operator = operator;
    }

    public Integer getPrmId() {
        return prmId;
    }

    public void setPrmId(Integer prmId) {
        this.prmId = prmId;
    }

    public String getPrmName() {
        return prmName;
    }

    public void setPrmName(String prmName) {
        this.prmName = prmName == null ? null : prmName.trim();
    }

    public Integer getPrmOpId() {
        return prmOpId;
    }

    public void setPrmOpId(Integer prmOpId) {
        this.prmOpId = prmOpId;
    }

    public Integer getPrmRsId() {
        return prmRsId;
    }

    public void setPrmRsId(Integer prmRsId) {
        this.prmRsId = prmRsId;
    }

    @Override
    public String toString() {
        return "AqPermission{" +
                "prmId=" + prmId +
                ", prmName='" + prmName + '\'' +
                ", prmOpId=" + prmOpId +
                ", prmRsId=" + prmRsId +
                ", resource=" + resource +
                ", operator=" + operator +
                '}';
    }
}